
package com.huizhan.web.dao;

import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.*;
import com.huizhan.web.model.*;


@Repository 
public interface ProjectTypeAuthorizeDao extends JpaRepository<ProjectTypeAuthorize,Long>
{
    
    /**
     * 根据类型id删除关联权限
     * @param projectTypeId
     */
    @Transactional
    void deleteByProjectTypeId(Long projectTypeId);
    
    /**
     * 根据项目类型ID获取权限集合
     * @param projectTypeId 项目类型ID
     * @return 权限集合
     */
    List<ProjectTypeAuthorize> findByProjectTypeId(Long projectTypeId);
    
}
